package com.shrct.businessprocess.product.impl;

import com.google.common.base.Objects;
import com.shrct.businessprocess.product.RCNormalizerService;
import edu.fudan.mylang.pf.BaseService;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.product.RCNormalizerService")
public class RCNormalizerServiceImpl extends BaseService implements RCNormalizerService {
  public String normalizeSid(final String sid) {
    String _xblockexpression = null;
    {
      boolean _equals = Objects.equal(sid, null);
      if (_equals) {
        return null;
      }
      String _upperCase = sid.toUpperCase();
      String _replace = _upperCase.replace("_", "-");
      String _replace_1 = _replace.replace("o", "0");
      String _replace_2 = _replace_1.replace("O", "0");
      String _replace_3 = _replace_2.replace("l", "1");
      String _replace_4 = _replace_3.replace("L", "1");
      _xblockexpression = (_replace_4);
    }
    return _xblockexpression;
  }
}
